package routers

import (
	"mars-backend/controllers"

	"github.com/astaxie/beego"
)

func LoginRouter() {

	// //后端API 登录
	// beego.Router("/api/user/login", &controllers.APIController{}, "post:Login")
	// //后端API AddUser
	// beego.Router("/api/user/add", &controllers.APIController{}, "post:AddUser")
	// //UpdateUser 更新用户
	// beego.Router("/api/user/:id", &controllers.APIController{}, "put:UpdateUser")
	// //DeleteUser 删除用户 将isdelete 设置为1
	// // beego.Router("/api/user/:id", &controllers.APIController{}, "delete:DeleteUser")

	beego.Router("/user/login", &controllers.LoginController{}, "post:Login" )
}
